x86/smp: don't online cpu if hypervisor_ap_setup fails
authorWei Liu <liuwe@microsoft.com>
Wed, 29 Jan 2020 13:53:53 +0000 (13:53 +0000)
committerWei Liu <liuwe@microsoft.com>
Wed, 5 Feb 2020 15:55:02 +0000 (15:55 +0000)
commit0566b53215e450773bfb84e33e4359258f31e45f
tree8f1c0816e65fc420c5efa3fce95c78dcfda788df
parent5eeeddf74b62b5865f0950c4483baee5811bfadd
x86/smp: don't online cpu if hypervisor_ap_setup fails

Push hypervisor_ap_setup down to smp_callin.

Take the chance to replace xen_guest with cpu_has_hypervisor.

Signed-off-by: Wei Liu <liuwe@microsoft.com>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/smpboot.c
xen/include/asm-x86/guest/hypervisor.h